<template>
  <div id="titleimg">
    <!-- 顶部背景图片 -->
    <div class="imgbg" :style="`background: url(`+titleImg.info.img_url+`) no-repeat;`">
      <Row>
        <!-- 左上就业班课程小标题 -->
        <Col span="24" class="minTitleClass">{{titleImg.minTitle?titleImg.minTitle:""}}</Col>
      </Row>
      <Row>
        <!-- 中部课程大标题 -->
        <Col span="24" class="maxTitleClass" v-html="titleImg.maxTitle?titleImg.maxTitle:''"></Col>
      </Row>
      <Row type="flex" justify="space-around">
        <Col span="3">&nbsp</Col>
        <!-- 学期 -->
        <Col span="7">{{titleImg.info?titleImg.info.timeTitle:""}}</Col>
        <!-- 难度 -->
        <Col span="5">{{titleImg.info?titleImg.info.diffTitle:""}}</Col>
        <!-- 预期工资 -->
        <Col span="6" class="infooffset">{{titleImg.info?titleImg.info.wageTitle:""}}</Col>
        <Col span="3">&nbsp</Col>
      </Row>
      <Row type="flex" justify="space-around" class="maxInfo">
        <Col span="3">&nbsp</Col>
        <!-- 具体学期时间 -->
        <Col span="7">{{titleImg.info?titleImg.info.time:""}}</Col>
        <!-- 具体难度 -->
        <Col span="5">{{titleImg.info?titleImg.info.diff:""}}</Col>
        <!-- 工作以后的工资范围 -->
        <Col span="6" class="infooffset">{{titleImg.info?titleImg.info.wage:""}}</Col>
        <Col span="3">&nbsp</Col>
      </Row>
    </div>
  </div>
</template>

<script>
//导入vue
import Vue from "vue";
//iview-ui 布局组件导入
import { Row, Col } from "view-design";

export default {
  name: "titleimg",
  //组件注册
  components: {
    Row,
    Col
  },
  //属性传入
  props: ["titleImg"],
  data() {
    return {

    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped>
/* 局部UI样式修改 */
.imgbg {
  background-size: cover !important;
  color: #fff;
  font-size: 8px;
}
.minTitleClass {
  padding: 15px;
}
.maxTitleClass {
  font-size: 24px;
  text-align: center;
  padding: 25px 0;
}
.maxInfo {
  font-size: 16px;
  padding: 20px 0 40px;
}
.infooffset {
  padding-left: 18px;
}
</style>